/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

/* 头部样式 */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2c3e50;
    color: #fff;
    padding: 10px 20px;
    position: relative;
}
.logo-area {
    display: flex;
    align-items: center;
}
.logo-area img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}
.logo-area h1 {
    font-size: 20px;
    margin: 0;
}
.user-control {
    position: relative;
}
.profile-btn {
    background-color: #3498db;
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
}
.profile-btn:hover {
    background-color: #2980b9;
}
.dropdown {
    display: none;
    position: absolute;
    top: 40px;
    right: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}
.user-control:hover .dropdown {
    display: block;
}
.user-info {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}
.logout-btn {
    background-color: #e74c3c;
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
    text-align: center;
    display: block;
    margin: 10px;
}
.logout-btn:hover {
    background-color: #c0392b;
}
.time-display {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 14px;
}

/* 主内容区样式 */
.content-container {
    display: flex;
    margin: 20px;
}
.side-menu {
    width: 200px;
    background-color: #34495e;
    color: #fff;
    padding: 20px;
    border-radius: 5px;
}
.menu-list {
    list-style: none;
}
.menu-item {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #fff;
    border-radius: 5px;
    margin-bottom: 10px;
    transition: background-color 0.3s ease;
}
.menu-item:hover {
    background-color: #2980b9;
}
.main-content {
    flex: 1;
    margin-left: 20px;
    background-color: #fff;
    border-radius: 5px;
    padding: 20px;
}
.content-frame {
    width: 100%;
    height: 80vh;
    border: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .content-container {
        flex-direction: column;
    }
    .main-content {
        margin-left: 0;
        margin-top: 20px;
    }
    .side-menu {
        width: 100%;
        margin-bottom: 20px;
    }
}